﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using HotelManagement.DTO;
using HotelManagement.DAO;

namespace HotelManagement.BLO
{
    class Room_EquipmentBLO
    {
        private Room_EquipmentDAO dao;
        public Room_EquipmentDAO Dao
        {
            get { return dao; }
            set { dao = value; }
        }

        public Room_EquipmentBLO()
        {
            dao = new Room_EquipmentDAO();
        }

        public bool Insert(Room_EquipmentDTO unit)
        {
            return dao.Insert(unit);
        }

        public bool Update(Room_EquipmentDTO unit)
        {
            return dao.Update(unit);
        }
        public DataTable SelectEquipmentOfARoom(int roomID)
        {
            return dao.SelectEquipmentOfARoom(roomID);
        }

        public bool InsertOrUpdate(Room_EquipmentDTO unit)
        {
            return dao.InsertOrUpdate(unit);
        }
        public DataTable SelectAvailableEquipentOfARoom(int pRoomID)
        {
            return dao.SelectAvailableEquipentOfARoom(pRoomID);
        }
    }
}
